﻿@model IQueryable<MMITDomain.Entities.Transaction>
         
@{
    ViewBag.Title = "Transactions | Requests for Withdrawals";
}

<script type="text/javascript">
    $('document').ready(function () {
        //disable home menu nav bar
        $('li:nth-child(1)').removeClass('active');
        //enable transactions menu nav bar
        $('li:nth-child(3)').addClass('active');
    });

</script>
<div class="top-bar"> <a href="#" class="button">Teller </a>
        <h1>Reports: Request for Withdrawal</h1>
        <div class="breadcrumbs"><a href="#">Transactions</a> / @Html.ActionLink("Withdraw","Withdraw")</div>
</div>
            <div class="select-bar">

            </div>
<div id="page" class="table">

@(Html.Telerik().Grid(Model).Name("Transactions")
                              .Groupable(grouping => grouping
                              .Groups(groups =>
                              {
                                  //Group by Transaction Types...
                                  groups.Add(c => c.TransactionType.Name);
                              }))
                            .DataKeys(keys => keys.Add(o => o.Id))
                            .Columns(
                                    columns =>
                                    {
                                        columns.Template(@<text> @Html.ActionLink("View", "List", new {Id = @item.TransactionCode })</text>).Title("Actions");
                                        columns.Bound(o => o.TransactionCode).Title("TransactionRef");
                                        columns.Bound(o => o.TransactionType.Name).Title("Transaction Type");
                                        columns.Bound(o => o.Amount).Title("Amount");
                                        columns.Bound(o => o.Recipient.Name).Title("Recipient");
                                        columns.Bound(o => o.TimeInitiated).Title("Transaction Date");
                                        columns.Bound(o => o.coreStatus).Title("Status");
                                    }
                            )
                            .Pageable(pageable => pageable.Enabled(true))
                            .Filterable(filterable => filterable.Enabled(true))
                            .Groupable(groupable => groupable.Enabled(true))
                            .Footer(true)
    )

    </div>
